from django.conf.urls.defaults import *

urlpatterns = patterns('',
   # all videos or latest videos
    url(r'^$', 'videos.views.videos', name="videos"),
    # a videos details
    url(r'^details/(?P<id>\d+)/$', 'videos.views.details', name="video_details"),
    # upload videos
    url(r'^upload/$', 'videos.views.upload', name="video_upload"),
    # your videos
    url(r'^yourvideos/$', 'videos.views.yourvideos', name='videos_yours'),
    # a members videos
    url(r'^member/(?P<username>[\w]+)/$', 'videos.views.membervideos', name='videos_member'),
    #destroy video
    url(r'^destroy/(\d+)/$', 'videos.views.destroy', name='video_destroy'),
    #edit video
    url(r'^edit/(\d+)/$', 'videos.views.edit', name='video_edit'),
    )

